<?php
class Communication_Form_Icqconfig extends Zen_Form
{
    public function init ()
    {

        parent::init();
        $this->setName('form');
        
        
        
        
        $uin = new Zend_Form_Element_Text('uin',
        array('required' => TRUE ,
          'label' => 'Номер icq: ' , 
          'description'=>'Номер, с которого будут отправляться сообщения',
          'maxlength' => '300' , 
          'class'=>'zend_text ',
          'validators' => array(array('StringLength' , true , array(0 , 300 , 'utf-8')))));
        $uin->setFilters ( array ('StringTrim','StripTags'));
		
        $password = new Zend_Form_Element_Text('password',
        array('required' => TRUE ,
          'label' => 'Пароль : ' , 
          'maxlength' => '300' , 
          'class'=>'zend_text ',
          'validators' => array(array('StringLength' , true , array(0 , 300 , 'utf-8')))));
        $password->setFilters ( array ('StringTrim','StripTags'));
		
        
        
        $sumbit=new Zend_Form_Element_Submit('submit',array('label'=>'Сохранить','class'=>'button ui-corner-all ui-state-default'));
        $this->addElements(array($uin,$password,$sumbit));
        
       
    }
}